package com.niit.service;

import com.niit.bo.PageBean;
import com.niit.bo.StudentWithPaper;
import com.niit.model.*;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 王铭 20181620310021
 * #Date 2021/6/23 - 22:52
 */

@Service
public class TeacherNewService {
    public List<ExamPaper> findExamPapersUnChecked(Teacher teacher) {
        return new ArrayList<ExamPaper>();
    }

    public boolean checkPaper(Integer id) {
        return true;
    }

    public List<ExamPaper> findExamPapersChecked(Teacher teacher) {
        return new ArrayList<ExamPaper>();

    }

    public List<StudentWithPaper> viewMark(Integer id) {
        return new ArrayList<StudentWithPaper>();
    }

    public StudentPaper viewPaperDetail(Integer paperId) {
        return new StudentPaper();
    }

    public List<ExamPaper> examPapers(Teacher teacher) {
        return new ArrayList<ExamPaper>();
    }

    public ExamPaper getExamPaper(Integer id) {
        return new ExamPaper();
    }

    public ExamPaper changeExamPaper(ExamPaper examPaper) {
        return new ExamPaper();
    }

    public ExamPaper addExamPaper(ExamPaper examPaper) {
        return new ExamPaper();
    }

    public List<Question> queryQuestionsForAdd(Integer paperId, Teacher teacher) {
        return new ArrayList<>();
    }

    public ExamPaper addQuestionForExam(Integer paperId, Integer id, Teacher teacher) {
        return new ExamPaper();
    }

    public List<Question> queryQuestions(Teacher teacher) {
        return new ArrayList<>();
    }

    public Question getQuestion(Integer id) {
        return new Question();
    }

    public Question changeQuestion(Question question) {
        return new Question();
    }

    public Question addQuestion(Question question) {
        return new Question();
    }

    public List<Classes> getClasses(Teacher teacher) {
        return new ArrayList<>();
    }

    public Classes editClass(Integer id) {
        return new Classes();
    }

    public Classes changeClass(Classes classes) {
        return new Classes();
    }

    public Classes addClass(Classes classes) {
        return new Classes();
    }

    public List<Student> getStudents(Integer code) {
        return new ArrayList<>();
    }

    public boolean removeStudentFromClass(Integer code, Integer id) {
        return true;
    }

    public boolean changeAccount(Teacher teacher) {
        return true;
    }

    public String changePwd(String old, String neW, String cfm) {
        return "修改成功";
    }

    public boolean deleteClass(Integer id) {
        return true;
    }

    public Classes getClasse(Integer code) {
        return new Classes();
    }

    public PageBean<Student> getStudentsPageful(Integer aPageNum, Integer index) {

        PageBean<Student> studentPageBean = new PageBean<Student>(20, aPageNum, index);
        studentPageBean.setArrayList(new ArrayList<Student>());
        return studentPageBean;
    }

    public PageBean<Classes> getClassesPageful(Teacher teacher, Integer aPageNum, Integer index) {

        PageBean<Classes> classesPageBean = new PageBean<>(20, aPageNum, index);

        return classesPageBean;
    }

    public boolean appeendSelection(Question question, Selection selection1) {
        return true;
    }
}
